package com.xielaoban.his1.mappers;

import com.xielaoban.his1.model.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    //添加记录
    int insert(Department department);
    //查询所有
    List<Department> selectAll();
    //更新记录
    int update(Department department);
    //删除记录
    int deleteOneById(Department department);
    //模糊查询根据ID或者名字
    List<Department> qurryByDeptCodeAndDeptName(String keywords);
}
